From 2585169bbbf4609a46957f1e5fd210ee8b942a8b Mon Sep 17 00:00:00 2001 From: "emellor@ewan" Date: Tue, 27 Sep 2005 12:30:13 +0100 Subject: [PATCH] Use constant in XendDomainInfo rather than embedding a string literal. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/XendCheckpoint.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendCheckpoint.py b/tools/python/xen/xend/XendCheckpoint.py index 51d0904245..b0e73a97c9 100644 --- a/tools/python/xen/xend/XendCheckpoint.py +++ b/tools/python/xen/xend/XendCheckpoint.py @@ -10,8 +10,12 @@ import select import sxp from string import join from struct import pack, unpack, calcsize + from xen.util.xpopen import xPopen3 + import xen.lowlevel.xc + +import XendDomainInfo from xen.xend.xenstore.xsutil import IntroduceDomain from XendError import XendError @@ -74,7 +78,7 @@ def save(xd, fd, dominfo, live): if l.rstrip() == "suspend": log.info("suspending %d" % dominfo.domid) xd.domain_shutdown(dominfo.domid, reason='suspend') - dominfo.state_wait("suspended") + dominfo.state_wait(XendDomainInfo.STATE_VM_SUSPENDED) log.info("suspend %d done" % dominfo.domid) child.tochild.write("done\n") child.tochild.flush() -- 2.30.2